class UrlManager(object):
    def __init__(self):
        self.has_urls = []

    def get_urls(self, url, pages):
        for page in range(1, pages):
            new_uel = url.format(str(page))
            self.has_urls.append(new_uel)

    def has_new_url(self):
        return len(self.has_urls) != 0

    def get_new_url(self):
        new_url = self.has_urls.pop(0)
        print(new_url)
        return new_url
